﻿using DG.Tweening;
using UnityEngine;

namespace Level
{
    public class FloorElement : MonoBehaviour
    {
        public int Id { get; set; }
        public Vector3 Position { get; set; }
        
        private Tween _tween;

        private void OnDestroy() =>
            _tween?.Kill();

        public void Visualize(float time) =>
            _tween = transform.DOScale(Vector3.one, time).SetEase(Ease.OutBounce);
    }
}